package com.epam.client.controller;

import java.util.Date;

import javax.persistence.NoResultException;
import org.apache.log4j.Logger;

import com.epam.DAO.ClientDAO;
import com.epam.DAO.Factories.DAOFactory;
import com.epam.entity.Client;

public class ClientRegisterBean {

	private static Logger log = Logger.getLogger(ClientLoginBean.class);

	private DAOFactory daoFactory;
	private ClientDAO clientDAO;

	private Client client;
	
	private String login;
	private String pass;
	private String email;
	private String firstName;
	private String lastName;
	private Date birthDate;

	public ClientRegisterBean() {
		daoFactory = DAOFactory.getDAOFactory(DAOFactory.CURRENT_IMPLEMENTATION);
		clientDAO = daoFactory.getClientDAO();
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public String tryRegister() {
		// TODO 
		return null;
	}

}
